<?php if(isset($_SESSION['user'])){?>
	<div class="container">
		<div class="well min_height">
			<div class="inner_title">
			<?php if(isset($_GET['testimony_id']) && $_GET['testimony_id']!=""){?>
				<h3>Edit Testimony</h3>
			<?}else{?>
				<h3>Add Testimony</h3>
			<?}?>
			</div>
				<form class="form-horizontal" id="testimony_form" name="testimony_form" method="post" action="">
				<div class="control-group">
					<label class="control-label" for="inputPassword">Testimony</label>
					<div class="controls">
						<textarea id="testimony_text" name="testimony_text"><? if(isset($this->textimony_details->review_text) && $this->textimony_details->review_text!=""){echo $this->textimony_details->review_text;}else{}?></textarea>
					</div>
				</div>
				<div class="control-group">
					<div class="controls">
						<input type="button" class="clf_btn" id="btn_testimony" name="btn_testimony" value="Save" onClick="return testimonyValidate('admin');"><br/>
						<input type="hidden" id="hid_testimony" name="hid_testimony" value="<? if(isset($this->textimony_details->review_id) && $this->textimony_details->review_id!=""){echo $this->textimony_details->review_id;}else{}?>">
					</div>
				</div>
				</form>
		</div>
	</div>
<? } else {?>
<script>
	window.location=BASE_URL;
</script>
<?}?>